FROM registry.cn-hangzhou.aliyuncs.com/zyzbp/openjdk:8-jdk

MAINTAINER wangx iamwx@foxmail.com

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone

COPY data-manage-server.jar /app.jar

ENTRYPOINT ["java", "-Xmx2g", "-Djava.security.egd=file:/dev/./urandom", "-Ddruid.mysql.usePingMethod=false", "-jar", "/app.jar"]
